home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 009 / softg02.unp < prev    next >
Text File  |  1985-10-03  |  8KB  |  166 lines

  1. SOFTG.UNP           Breaking Sofguard version 2.00
  2.                                                     by The Lone Victor
  3.  
  4.      Programs that are protected by the Softguard system are distingished
  5. by the fileS CML0200.HCL and VDF0200.VDW which are hidden in the root
  6. directory when you install the program on your fixed disk.  The 0200
  7. part of the file names is the Softguard version (2.00) while CML stands
  8. for Common Loader and VDF is the Volume Descriptor File.  The extentions
  9. HCL and VDW stand for Hard Common Loader and Verify Descriptor Working
  10. copy.  In addition, there will be a hidden root file with a .EXE or .LOD
  11. extention.  This is the REAL program, which has been encrypted and hidden.  
  12.  
  13.      The program <FILE>.COM, in the product directory is the Softguard mini-
  14. loader.  All it does is call the Common Loader.  For example, when you run
  15. dbase, the program DBASE.COM loads CML0200.HCL high in memory and runs it.  
  16. CML decrypts itself and reads VDF0200.VDW.  The VDF file contains some code 
  17. and data from the fixed disk FAT at the time of installation.  By comparing 
  18. the information in the VDF file with the current FAT, CML can tell if the
  19. CML, VDF, and DBASE.EXE files are in the same place on the disk where they 
  20. were installed.  If they have moved, say from a backup & restore, then dBase 
  21. will not run.
  22.  
  23.      This text file is designed to let you unprotect ANY of the programs
  24. using the Softguard 2.00 system.  We will use dBase III as an example,
  25. but values for other programs will be included in a table.
  26.  
  27.      The dBase III compiler named CLIPPER uses Softguard 2.03 (i.e. has
  28. CML0203.HCL, etc.)  Many of the code addresses are different in this 
  29. version.  This text will not, currently, unprotect any programs using 
  30. Softguard 2.03.  Versions 1.00 of dBase III and Framework used ProLock.  
  31. To unprotect Prolock disks read the file PROLOCK.UNP, also by yours truely.
  32.  
  33.      This table is an experiment designed to keep down the number of files
  34. uploaded to BBS's.  When I started it, this text file was named SOFTG1.UNP.  
  35. Whenever you add a product to the table (including your "name" if desired)  
  36. increment the file name by one and upload it to your local BBS.  Don't worry 
  37. about the fact that others will be doing the same.  Higher versions of 
  38. SOFTGxxx.UNP will not INSURE that they contain all the tabulated products, 
  39. but will be MORE LIKELY to contain them all.  Eventually we'll get them all 
  40. collected.  
  41.  
  42.      If you find a new program to add to the table, just enter the name of 
  43. the encrypted, hidden file in the root directory, and it's size converted
  44. to HEX.  Try it out before you upload it to your BBS.
  45.  
  46.      If you have any comments on this unprotect routine or the PROLOCK.UNP
  47. routine, please leave them on the Atlanta PCUG BBS (404) 634-5731.
  48.  
  49.                                           The Lone Victor - 6/26/85
  50.  
  51.  
  52.  
  53.             TABLE OF VALUES FOR VARIOUS PROTECTED PROGRAMS
  54.  
  55.                      FILE    FINALèPRODUCT  VERSION     NAME     EXT  SIZE:  BX=  CX=        CONTRIBUTOR
  56. ------------------------------------------------------------------------
  57.  
  58. dBase III   1.10     DBASE    EXE   BX = 1  CX = AC00  The Lone Victor 4/15/85
  59. Framework   1.10     FW       EXE   BX = 2  CX = F400  Q-1367
  60.                                   (I question this next file size - L.V.)
  61. WordStar    1.00     WS2000   EXE   BX = 1  CX = AC00  Gerald Lee
  62. Double DOS    ?      DOUBLEDO EXE   BX = ?  CX = ?     Big Al & Coffee Man
  63. Spot Light    ?      SL       EXE   BX = 0  CX = 6700
  64. Dr. Halo II 2.00     DRHALO   EXE   BX = 2  CX = A000
  65.  
  66.  
  67.  
  68.  
  69.      The following instructions show you how to bypass the SoftGuard copy 
  70. protection scheme using dBase III version 1.10 as an example.  To use it 
  71. with other products, simply substitute the values in the table above for 
  72. the values given below.  The only things that change are the file name, 
  73. and the size that goes in the BX:CX register pair.
  74.  
  75.      First, using your valid, original dBase III diskette, install it on
  76. a fixed disk.  You cannot use this text to unprotect the floppy directly!
  77. Softguard hides three files in your fixed disk root directory: CML0200.HCL, 
  78. VDF0200.VDW, and DBASE.EXE.  It also copies DBASE.COM into your chosen dBase 
  79. directory.  DBASE.EXE is the real dBase III program, encrypted.  (This file
  80. might also be named DBASE.LOD, but is the same thing.)
  81.  
  82.      Second, un-hide the three files in the root directory.  You can do
  83. this with the programs ALTER.COM or FM.COM found on any BBS.
  84.  
  85.      Make copies of the three files, and of DBASE.COM, into some other
  86. directory.
  87.  
  88.      Hide the three root files again using ALTER or FM.
  89.  
  90.      Following the dBase instructions, UNINSTALL dBase III.  You can now
  91. put away your original dBase diskette.  We are done with it.
  92.  
  93.      Next we will make some patches to CML0200.HCL to allow us to trace
  94. through the code in DEBUG.  These patches will keep it from killing our
  95. interrupt vectors.
  96.  
  97. debug cml0200.hcl
  98. e 3F9 <CR>  2A.4A <CR>          ; change the 2A to 4A
  99. e 49D <CR>  F6.16 <CR>          ;  if any of these numbers don't show up
  100. e 506 <CR>  E9.09 <CR>          ;  it's not working.
  101. e A79 <CR>  00.20 <CR>          ;
  102. e AE9 <CR>  00.20 <CR>          ;
  103. e 73C  97 FA FA F4 F1 7E <CR>   ; this is an encrypted call to 0:300
  104. w                               ; write out the new CML file
  105. q                               ; quit debug
  106.  
  107.  
  108.      Now copy your four saved files back into the root directory and
  109. hide the CML0200.HCL, VDF0200.VDW, and DBASE.EXE files using ALTER or FM.è
  110.      We can now run DBASE.COM using DEBUG, trace just up to the point
  111. where it has decrypted DBASE.EXE, then write that file out.
  112.  
  113.           ****  USE THE FILE NAME LISTED IN THE TABLE ABOVE  ****
  114.        ****  E.G. USE FW.COM INSTEAD OF DBASE.COM FOR FRAMEWORK  ****
  115.  
  116. debug DBASE.com                 ; name of file that runs the product
  117. r <CR>                          ; dump debug's registers
  118.  
  119.           ****  WRITE DOWN THE VALUE OF DS FOR USE BELOW.  ****
  120.      ****  THIS VALUE IS DEPENDENT ON YOUR PARTICULAR MACHINE.  ****
  121.  
  122. a 0:300 <CR>                    ; we must assemble some code here
  123.         pop     ax
  124.         cs:
  125.         mov     [320],ax        ; save return address
  126.         pop     ax
  127.         cs:
  128.         mov     [322],ax
  129.         push    es              ; set up stack the way we need it
  130.         mov     ax,20
  131.         mov     es,ax
  132.         mov     ax,0
  133.         cs:
  134.         jmp     far ptr [320]   ; jump to our return address
  135.  <CR>
  136. g 406                           ; now we can trace CML
  137. t
  138. g 177                           ; this stuff just traces past some
  139. g 1E9                           ;   encryption routines.
  140. t
  141. g 54E                           ; wait while reading VDF & FAT
  142. g=559 569
  143. g=571 857                       ; DBASE.EXE has been decrypted
  144.  
  145.               ****  USE THE FILE SIZE LISTED IN THE TABLE ABOVE  ****
  146.               ****  THE VALUES HERE ARE FOR DBASE III 1.10 ONLY  ****
  147.  
  148. rBX <CR>  
  149. :1                              ; set BX to 1 for dBase
  150. rCX <CR>
  151. :AC00                           ; set CX to AC00 for dBase
  152.  
  153.               ****  USE THE FILE NAME LISTED IN THE TABLE ABOVE  ****
  154.  
  155. nDBASE.bin                      ; name of file to write to
  156. w XXXX:100                      ; where XXXX is the value of DS that
  157.                                 ;   you wrote down at the begining.
  158. q                               ; quit debug
  159.  
  160.      Last, unhide and delete the three root files CML0200.HCL, VDF0200.VDW, 
  161. and DBASE.EXE.  Delete DBASE.COM and rename DBASE.BIN to DBASE.EXE.  This is 
  162. the real dBase III program without any SoftGuard code or encryption.  It 
  163. requires only the DBASE.OVL file to run.  Every protected program I have seenèhas the .EXE extention, but it is possible to use Softguard to encrypt .COM
  164. files too.  See the table above for the proper extention to put on the de-
  165. crypted file.
  166.